import request from '@/utils/request'

// 查询警校考生资格审查信息列表
export function listQualification(query) {
  return request({
    url: '/system/qualification/list',
    method: 'get',
    params: query
  })
}

export function findRiQi() {
  return request({
    url: '/system/dashboard/findRiQi',
    method: 'get'
  })
}

// 查询打印
export function getPrint() {
  return request({
    url: '/system/qualification/getTitle',
    method: 'get'
  })
}

// 查询警校考生资格审查信息详细
export function getQualification(id) {
  return request({
    url: '/system/qualification/' + id,
    method: 'get'
  })
}

// 新增警校考生资格审查信息
export function addQualification(data) {
  return request({
    url: '/system/qualification',
    method: 'post',
    data: data
  })
}

// 修改警校考生资格审查信息
export function updateQualification(data) {
  return request({
    url: '/system/qualification',
    method: 'put',
    data: data
  })
}

// 删除警校考生资格审查信息
export function delQualification(id) {
  return request({
    url: '/system/qualification/' + id,
    method: 'delete'
  })
}

// 批量通过资格审查
export function batchPassQualification(data) {
  return request({
    url: '/system/qualification/batchPass',
    method: 'put',
    data: data
  })
}
